/*
 * @Author: xiaosihan 389652405@qq.com
 * @Date: 2025-10-18 07:48:01
 * @LastEditors: xiaosihan 389652405@qq.com
 * @LastEditTime: 2025-10-19 23:52:12
 * @FilePath: \park-3\srcWeb\views\Home\homeStore.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { DeviceData } from "@/types/type";
import { makeAutoObservable } from "mobx";
class HomeStore {
    constructor() {
        makeAutoObservable(this, {}, { deep: false });
    }

    showFlor = 0;
    setShowFlor(floor: number) {
        this.showFlor = floor;
    }

    // 设备数据
    deviceDatas: Array<DeviceData> = [];
    setDeviceDatas(deviceDatas: Array<DeviceData>) {
        this.deviceDatas = deviceDatas;
    }

}

const homeStore = new HomeStore();

export default homeStore;
